<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    var title1={
        name:'我不是药神',
        time:2018,
        type:"喜剧",
        director:"文牧野",
        star:["徐峥","王传君","周一围","谭卓"]
    };
    var title2={
        name:'飞驰人生',
        time:2019,
        type:"喜剧",
        director:"韩寒",
        star:["沈腾","黄景瑜","尹正"]
    };
    var title3={
        name:'红海行动',
        time:2018,
        type:"动作",
        director:"林超贤",
        star:["张译","黄景瑜","海清","杜江","张涵予"]
    };
    var titles=[title1,title2,title3];
    console.log(titles);
</script>
</body>
</html>